<div class="content-top flex-row flex-nowrap flex-align-center flex-justify-between">
    <?php if (isset($searchbar)):?><?php echo $searchbar;?><?php endif;?>
    <?php if (isset($backbtn)):?><?php echo $backbtn;?><?php endif;?>
    <?php if (isset($createbtn)):?><?php echo $createbtn;?><?php endif;?>
</div>
<?php if (isset($filter)):?><?php echo $filter;?><?php endif;?>
<?php if (isset($other)):?><?php echo $other;?><?php endif;?>
<table class="gridtable">
    <tbody>
    <tr>
        <?php foreach ($headers as $header):?>
            <th><?php echo $header;?></th>
        <?php endforeach;?>
    </tr>
    <?php foreach ($list as $li):?>
        <tr>
        <?php foreach ($li as $item):?>
            <td><?php echo $item;?></td>
        <?php endforeach;?>
        </tr>
    <?php endforeach;?>
    </tbody>
</table>
<?php if (isset($pagination)):?>
<div class="pagination"><?php echo $pagination;?></div>
<?php endif;?>
